<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 体积V=1/3π半径2*高
    var r = prompt("请输入圆锥底面半径");
    var h = prompt("请输入圆锥的高");
    var v = 1 / 3 * Math.PI * Math.pow(r,2) * h;
    alert("圆锥体积为：" + v);
</script>
</html>